


                          POKER PROGRAMMING

// coding for poker
//  for ROYAL FLUSH

if((a-1)/13==(e-1)/13||(b-1)/13==(f-1)/13||(c-1)/13==(g-1)/13))//for
confirmation of cards are of same suit
    {
         if(a%13==1 && b%13==10 && c%13==11 && d%13==12 && e%13==0)

       {
        else if(b%13==10 && c%13==11 && d%13==12 && e%13==0 && f%13==0)

         {
          else if(c%13==11 && d%13==12 && e%13==0 && f%13==0 && f%13==0)

        {break;

        }

          }

            }

            }
// resulted combination will be royal flush


//for straight flush
else if((a-1)/13==(e-1)/13||(b-1)/13==(f-1)/13||(c-1)/13==(g-1)/13))

    {
      if(e==d+1==c+2==b+3==a+4)

        {

        else if(f==e+1==d+2==c+3==b+4)
            {

            else if (g==f+1==e+2==d+3==c+4)

            {break;
            }
        }
    }   }

// For four of a kind
If(a%13==d%13 || b%13==e%13 || c%13==f%13|| d%13==g%13)
{ break;}


//for full house
If(a%13==c%13 )
{
       If(d%13==e%13)

else if(e%13==f%13)

else if(f%13==g%13)
}
else if(b%13==d%13)
    { if(e%13==f%13)
    else if(f%13==g%13)}
else if(c%13==e%13)
    { if(f%13==g%13)
    break;}
// for flush
if((a-1)/13==(e-1)/13||(b-1)/13==(f-1)/13||(c-1)/13==(g-1)/13))
{break;}
//for three of a kind
If(a%13==c%13||b%13==d%13||c%13==e%13||d%13==f%13||e%13==g%13)
{ break;}
//for two pair

  6)MISCELLANEOUS-1         
